package xa.woniu.entity;

import java.io.Serializable;

/**
 * schedul
 * @author 
 */
public class Schedul implements Serializable {
    private Integer sid;

    private String sdate;

    private Integer sdid;

    private Integer snum;

    private static final long serialVersionUID = 1L;

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSdate() {
        return sdate;
    }

    public void setSdate(String sdate) {
        this.sdate = sdate;
    }

    public Integer getSdid() {
        return sdid;
    }

    public void setSdid(Integer sdid) {
        this.sdid = sdid;
    }

    public Integer getSnum() {
        return snum;
    }

    public void setSnum(Integer snum) {
        this.snum = snum;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Schedul other = (Schedul) that;
        return (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getSdate() == null ? other.getSdate() == null : this.getSdate().equals(other.getSdate()))
            && (this.getSdid() == null ? other.getSdid() == null : this.getSdid().equals(other.getSdid()))
            && (this.getSnum() == null ? other.getSnum() == null : this.getSnum().equals(other.getSnum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getSdate() == null) ? 0 : getSdate().hashCode());
        result = prime * result + ((getSdid() == null) ? 0 : getSdid().hashCode());
        result = prime * result + ((getSnum() == null) ? 0 : getSnum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sid=").append(sid);
        sb.append(", sdate=").append(sdate);
        sb.append(", sdid=").append(sdid);
        sb.append(", snum=").append(snum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}